<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数字方法</title>
</head>
<body>
<!--toString()方法将数字转化为字符串-->
<p id="demo"></p>
<script>
  let x = 123;
  document.getElementById("demo").innerHTML =
          x.toString() + "<br>" +
          (123).toString() + "<br>" +
          (100 + 23).toString();
</script>
</body>
</html>